#ifndef MODE_FRONT_HANDLE_H
#define MODE_FRONT_HANDLE_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "../device/device_gpio.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#include "device/device_uart.h"
#include "device/device_spi.h"
#include "display.h"
#include "key.h"

#include "Product_Config.h"
#include "LOG.h"

EM_SYS_SSP app_logic_get_front_last_ssp();
void app_logic_set_front_last_ssp(EM_SYS_SSP ssp);
EM_SYS_SSP app_logic_get_front_ssp();
void app_logic_set_front_ssp(EM_SYS_SSP ssp);

SYS_OPT_KEY front_on_off_opt(EM_DRV_ACT key_act);
SYS_OPT_KEY front_mode_opt(EM_DRV_ACT key_act);

void mode_front_handle(SYS_OPT_KEY opt);

void app_logic_set_front_recover_ssp(EM_SYS_SSP ssp);
EM_SYS_SSP app_logic_get_front_recover_ssp();
#endif